//---------------------------------------------------------------------------

#ifndef ABON_MERH
#define ABON_MERH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "DBCtrlsEh.hpp"
#include <DBCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Mask.hpp>
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include <DB.hpp>
#include "cxButtons.hpp"
#include <ActnList.hpp>
#include <Menus.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrABON_MER : public TForm
{
__published:	// IDE-managed Components
	TPanel *pUPR;
	TPanel *pEdit;
	TPanel *pTable;
	TcxGroupBox *gbEdit;
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TLabel *Label4;
	TLabel *Label5;
	TLabel *Label6;
	TLabel *Label7;
	TLabel *Label8;
	TDBLookupComboBox *cbNAIM_VOZD;
	TDBLookupComboBox *cbVID_VOZD;
	TDBEdit *dbeNOM;
	TDBEdit *dbeNOM_UVEDOML;
	TDBEdit *dbeSUM_PENI;
	TDBEdit *dbeSUM_PO_SUD;
	TDBDateTimeEditEh *dtpDAT_VZ;
	TDBDateTimeEditEh *dtpDAT_SUD;
	TcxGroupBox *gbTable;
	TcxGrid *sgPR_MER;
	TcxGridDBTableView *cxGridDBTableView1;
	TcxGridLevel *cxGridLevel1;
	TcxGridDBColumn *NOM_ABON;
	TcxGridDBColumn *NAIM_MER;
	TcxGridDBColumn *DAT_MER;
	TcxGridDBColumn *NAI_SUD;
	TcxGridDBColumn *NOM_UVED;
	TcxGridDBColumn *SUM_PENI;
	TcxGridDBColumn *SUM_DOLG;
	TcxGridDBColumn *DAT_SUD;
	TcxGridDBColumn *cxgrdbclmnKOD_OPERATORA;
	TcxGridDBColumn *DAT_WOD;
	TcxButton *btPoisk;
	TActionList *ActionList1;
	TAction *POISK;
	TcxButton *btAdd;
	TcxButton *btDelete;
	TcxButton *btSave;
	TAction *ADD;
	TAction *DEL;
	TAction *SAVE;
	TIBCQuery *dsetPR_MER;
	TIBCQuery *dsetNAIM_VOZD;
	TIBCQuery *dsetVID_VOZD;
	TIBCDataSource *dsPR_MER;
	TIBCDataSource *dsNAIM_VOZD;
	TIBCDataSource *dsVID_VOZD;
	TAction *actESC;
	void __fastcall ADDExecute(TObject *Sender);
	void __fastcall dtpDAT_VZKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbNAIM_VOZDClick(TObject *Sender);
	void __fastcall cbVID_VOZDClick(TObject *Sender);
	void __fastcall dbeNOM_UVEDOMLKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeSUM_PENIKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dtpDAT_SUDKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeSUM_PO_SUDKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall SAVEExecute(TObject *Sender);
	void __fastcall dbeNOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall DELExecute(TObject *Sender);
	void __fastcall cxGridDBTableView1DblClick(TObject *Sender);
	void __fastcall cxGridDBTableView1KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall POISKExecute(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall actESCExecute(TObject *Sender);
private:	// User declarations
public:		// User declarations
int NOM,Stat;
	__fastcall TfrABON_MER(TComponent* Owner);
	void __fastcall TfrABON_MER::Obnovi(int Stat);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrABON_MER *frABON_MER;
//---------------------------------------------------------------------------
#endif
